<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
//include("../include/function.php");
dbconnect();
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
?>

<?php 

$id = $_GET['id'];

$del = deletequery("role_management","roleid",$id);
/* $delete ="DELETE FROM role_management WHERE roleid='$id'";
$deleterole = mysql_query($delete); */

header("Location: index.php?management=role");
?>
<?php
}
else
{
header("Location: login.php");
}
?>